import { Controller, Get, Req } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { Seat_Service } from '../seat/seat.service';
import { IRequest } from '@/common/typeScripts/index';
import { util_ApiResponse_Base } from '@/common/util/apiResponse';
import { util_Index_ReturnContent } from '@/common/util/index';

@Controller('/web/seatWeb')
@ApiTags('seatWeb 商品')
export class SeatWeb_Controller {
  constructor(private readonly seat_Servicc: Seat_Service) {}

  @Get('/mySeat')
  @util_ApiResponse_Base({
    dataType: 'dataType_ell',
    summary: '获取自己的有效商品',
    //apiKey: '/web/seatWeb/mySeat Get',
  })
  async seat_Web_MySeat(@Req() req: IRequest) {
    return util_Index_ReturnContent(await this.seat_Servicc.seat_Web_MySeat(req));
  }
}
